Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ItemProjector : Fix checking for actual "machineId" NBT tag instead of checking for any NBT data #55

Open
wants to merge 1 commit into
base: 1.16.5
Choose a base branch
from

Conversation

LelouBil
Copy link

I was trying to make a modpack and was stumbling upon a very weird crash.
I narrowed it down to this :
There was a mod in my list (I still don't know which) that was adding a "temperature" NBT tag to the ItemProjector stack.
When entering ItemProjector.addInformation(), getMachineId returned 0 (the default value since the NBT tag "machineId" was not present) instead of returning -1.

This was because getMachineId only checks if there is any NBT data at all, and not if the tag "machineid" is set.

This simple addition will fix that.

Side note, I still don't know what is adding the mysterious "temperature" tag to the item.

@voidsong-dragonfly
Copy link
Collaborator

Putting this on hold until new code gets merged, as it rolls over quite a few things with a steamroller including the projector.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants